﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserManager.aspx.cs" Inherits="DigitalAnts.Admin.UserManager" MasterPageFile="~/MasterPage/HomeAdmin.Master" %>

<asp:Content ID="Content1" runat="server" 
    contentplaceholderid="ContentPlaceHolder1">
    <div align="center">
    <asp:GridView ID="gvUser" runat="server" CellPadding="4" ForeColor="#333333" 
        GridLines="None" AllowPaging="True" 
            onpageindexchanging="gvUser_PageIndexChanging">
        <AlternatingRowStyle BackColor="White" />
        <EditRowStyle BackColor="#2461BF" />
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#EFF3FB" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
      <%--  <SortedAscendingCellStyle BackColor="#F5F7FB" />
        <SortedAscendingHeaderStyle BackColor="#6D95E1" />
        <SortedDescendingCellStyle BackColor="#E9EBEF" />
        <SortedDescendingHeaderStyle BackColor="#4870BE" />--%>
        <Columns>
            <asp:HyperLinkField DataNavigateUrlFields="colUserID" 
                DataNavigateUrlFormatString="~\Admin\UserManager.aspx?UserID={0}" 
                HeaderText="Edit" Text="Edit" />
        </Columns>
    </asp:GridView>

    <table id="tableUpdate">
        <tr>
            <td>Tên</td>
            <td>
                <asp:TextBox ID="txtFirstname" runat="server"></asp:TextBox></td>
            <td align="center">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                                ControlToValidate="txtFirstname" ErrorMessage="Dữ liệu không được rỗng." ValidationGroup="txt"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>Họ</td>
            <td>
                <asp:TextBox ID="txtLastname" runat="server"></asp:TextBox></td>
            <td align="center">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                                ControlToValidate="txtLastname" ErrorMessage="Dữ liệu không được rỗng." ValidationGroup="txt"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>Email</td>
            <td>
                <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox></td>
            <td align="center">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                                ControlToValidate="txtEmail" ErrorMessage="Dữ liệu không được rỗng." ValidationGroup="txt"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td></td>
            <td><asp:RegularExpressionValidator ID="regEM2" runat="server" 
                                                    ControlToValidate="txtEmail" ErrorMessage="Email không đúng kiểu." 
                                                    SetFocusOnError="True" ValidationGroup="txt"
                                                    ValidationExpression="^[_a-zA-Z0-9-]+(\.[_a-zA-Z0-9-]+)*@[a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*\.(([0-9]{1,3})|([a-zA-Z]{2,3})|(aero|coop|info|museum|name))$"></asp:RegularExpressionValidator></td>
            <td></td>
        </tr>
        <tr>
            <td>Địa chỉ</td>
            <td>
                <asp:TextBox ID="txtaddress" runat="server"></asp:TextBox></td>
            <td align="center">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                                ControlToValidate="txtaddress" ErrorMessage="Dữ liệu không được rỗng." ValidationGroup="txt"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td>Điện thoại di động</td>
            <td>
                <asp:TextBox ID="txtcellphone" runat="server"></asp:TextBox></td>
            <td align="center">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                                ControlToValidate="txtcellphone" ErrorMessage="Dữ liệu không được rỗng." ValidationGroup="txt"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td></td>
            <td><asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                                    ControlToValidate="txtcellphone" ErrorMessage="Điện thoại phải là số." 
                                                    SetFocusOnError="True" ValidationExpression="^\d+$" ValidationGroup="txt"></asp:RegularExpressionValidator></td>
            <td></td>
        </tr>
        <tr>
            <td>Điện thoại bàn</td>
            <td>
                <asp:TextBox ID="txthomephone" runat="server"></asp:TextBox></td>
            <td align="center">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                                ControlToValidate="txthomephone" ErrorMessage="Dữ liệu không được rỗng." ValidationGroup="txt"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td></td>
            <td><asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                                    ControlToValidate="txthomephone" ErrorMessage="Điên thoại phải là số." 
                                                    SetFocusOnError="True" ValidationExpression="^\d+$" ValidationGroup="txt"></asp:RegularExpressionValidator></td>
            <td></td>
        </tr>
        <tr>
            <td>Thành phố</td>
            <td>
                <asp:DropDownList ID="drpCity" runat="server">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>Ngày sinh</td>
            <td>
                <asp:TextBox ID="txtbirthday" runat="server"></asp:TextBox>
                </td>
            <td align="center">
            <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server"
                                                ControlToValidate="txtbirthday" ErrorMessage="Dữ liệu không được rỗng." ValidationGroup="txt"></asp:RequiredFieldValidator></td>
        </tr>
        <tr>
            <td colspan="2" align="right">
                <asp:Button ID="bttsave" runat="server" Text="Sửa" onclick="bttsave_Click" ValidationGroup="txt"/></td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <asp:Label ID="lblmess" runat="server" Text="" ForeColor="Red"></asp:Label></td>
        </tr>
    </table>
</div>
</asp:Content>


